﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;

namespace FB.Data.Models
{
    public class Log
    {
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public long ID { get; set; }

        public DateTime? TimeStamp { get; set; }

        [StringLength(50)]
        public string Level { get; set; }

        [StringLength(100)]
        public string Host { get; set; }

        [StringLength(100)]
        public string RemoteAddr { get; set; }

        [StringLength(100)]
        public string Logger { get; set; }

        [StringLength(100)]
        public string Source { get; set; }

        [StringLength(512)]
        public string Url { get; set; }

        public string Message { get; set; }

        public string Exception { get; set; }
    }

}
